<template>
  <div>
    <div ref="Mybox">我是一个div盒子</div>
    <MySon ref="Mydomel" />

    <button @click="work">修改内容</button>
  </div>
</template>
 
<script>
import MySon from './components/MySon.vue'
export default {
  components:{
    MySon
  },
  data() {
    return {}
  },
  methods:{
    work(){
    // console.log(this.$refs.Mybox);
    // this.$refs.Mybox.innerText = '我要写代码'
    this.$refs.Mydomel.myList()
  },
  },
}
</script>

<style scoped>
</style>